import { createRouter, createWebHistory } from 'vue-router'

import Login from '../views/Login.vue'
const routes = [
    {
        path: '/',
        name: 'login',
        component: Login
    },
    {
        path: '/index',
        name: 'index',
        redirect:"/index",
        component: () => import('../views/IndexView.vue'),
        children: [
            {
                path: '',
                component: () => import('../views/HomeView.vue')
            },
            {
                path: 'file',
                component: () => import('../views/FileInfo.vue')
            }

        ]
    },

]

export default createRouter({
    history: createWebHistory(),
    routes
})